package com.situ.web.service;

import java.util.List;

import com.situ.web.entity.PageBean;
import com.situ.web.entity.Student;
import com.situ.web.exception.NameRepeatException;

public interface IStudentService {
	public boolean register(Student student) throws NameRepeatException;

	public List<Student> findAll();

	public boolean deleteById(int id);

	public Student findById(int id);

	public boolean updateById(Student student);

	public PageBean getPageBean(Integer pageNo, Integer pageSize);

	public boolean checkName(String name);
}
